<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
		<script type="text/javascript" src="js/test.js"></script>
		<style>
			.d {
				width: 500px;
				height: 500px;
			}
		</style>
		<script type="text/javascript">
			$(function() { //主函数
				//init();
				var aqi={
					"ssd":333,
					"334":56,
				};
				
				
				Object.prototype.count=function(){
					var c=-1;//扣掉本身这个count函数
					for(var s in this){
						c++;	
					}
					return c;
				}
				
				alert(aqi.count());
			}); //主函数结束
		</script>
	</head>

	<body>
		<div class="d">

		</div>
	</body>

</html>